//package com.chinacoal.hr.levelboot.config;
//
//import com.primeton.eos.dap.sdk.api.webclient.SDKApiSubscriberProvider;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.beans.factory.annotation.Value;
//import org.springframework.stereotype.Component;
//
///**
// * @author: YunTao.Li
// * @create: 2019-12-17 17:43
// * @description:
// **/
//@Component
//public class ApiSubKeyConfig implements SDKApiSubscriberProvider {
//    @Autowired
//    private GatewayConfig gatewayConfig;
//
//    @Value("${product-stock.subkey}")
//    private String subkey;
//
//    @Override
//    public ApiSubscriber getSubscriber(String host, String requestPath) {
//        if (gatewayConfig.getPath().indexOf(host) != -1) {
//            return new ApiSubscriber(subkey);
//        } else {
//            return new ApiSubscriber();
//        }
//    }
//}
